package com.zmc.product.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 
 * 
 * @author zmc
 * @email 
 * @date 2024-10-14 18:43:35
 */
@Data
@TableName("commodity_banner")
public class CommodityBannerEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 轮播图地址
	 */
	private String imgUrl;
	/**
	 * 轮播图跳转链接
	 */
	private String skuId;

	private String toPath;
	/**
	 * 轮播图跳转类型 1:页面,2:H5,3:小程序（小程序使用）
	 */
	private String type;

	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@TableField(value = "create_by")
	private String createBy;

	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	@TableField(value = "update_by")
	private String updateBy;

}
